package com.qiaoyanqing.textdemoqyq7.Activities;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.qiaoyanqing.textdemoqyq7.R;

public class SuggestActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_suggest);



    }
  //返回上一页
    public void backMA(View view) {
        Intent intent=new Intent(SuggestActivity.this,CollectionActivity.class);
        startActivity(intent);
        finish();
    }

    //返回上一页
    public void homeclick(View view) {
        Intent intent=new Intent(SuggestActivity.this,CollectionActivity.class);
        startActivity(intent);
        finish();

    }
    //提交
    public void submitclick(View view) {
        Toast.makeText(this, "提交成功，感谢您的意见，我们会认真考虑", Toast.LENGTH_SHORT).show();
       new Thread(new Runnable() {
           @Override
           public void run() {
               try {
                   Thread.sleep(2000);
               } catch (InterruptedException e) {
                   e.printStackTrace();
               }
               Intent intent=new Intent(SuggestActivity.this,CollectionActivity.class);
               startActivity(intent);
               finish();

           }
       }).start();
    }
}
